package cn.dnui_xcz826.dnuifood_16110100826.service;

import java.util.List;

import cn.dnui_xcz826.dnuifood_16110100826.bean.CollectBean;
import cn.dnui_xcz826.dnuifood_16110100826.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/11/5.
 */

public interface CollectService {
    @GET("getAllUserCollection.do")
    Call<List<CollectBean>> doGetAllUserCollection(
            @Query("user_id") String user_id,
            @Query("flag") String flag
    );

    @GET("userCollectShop.do")
    Call<ResultBean> doUserCollectShop(
            @Query("user_id") String user_id,
            @Query("shop_id") String shop_id
    );

    @GET("userCollectFood.do")
    Call<ResultBean> doUserCollectFood(
            @Query("user_id") String user_id,
            @Query("food_id") String food_id
    );

    @GET("isCollected.do")
    Call<CollectBean> doIsCollected(
            @Query("user_id") String user_id,
            @Query("shop_food_id") String shop_food_id,
            @Query("flag") String flag
    );
}
